package com.vzoom.log4j2.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class Log4j2Service {

    private final static Logger logger = LoggerFactory.getLogger(Log4j2Service.class);

    public void log1() {
        logger.info("@address{}", "广东省中山市小榄镇民城东路9号美城创新工业园F幢901");
        logger.info("纳税人识别号[@nsrsbh{}]", "91440300MA5DP67B52");
        Map<String, String> map = new HashMap<>();
        map.put("code", "userCode");
        map.put("name", "张王八");
        logger.info("对象[@json{}]", map);
    }
}
